const path = require('path')

const resolve = dir => {
    return path.join(__dirname, dir)
}

const publicPath =
    process.env.NODE_ENV === 'production' ? '/ant-design-vue-pro/' : '/'
module.exports = {
    // 选项...
    publicPath: publicPath,
    chainWebpack: config => {
        config.resolve.alias
            .set('@', resolve('src')) // key,value自行定义，比如.set('@@', resolve('src/components'))
    },
    css: {
        loaderOptions: {
            less: {
                lessOptions: {
                    javascriptEnabled: true
                }
            }
        }
    }

}
